package com.n.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.n.common.BaseDao;
import com.n.model.CodeValue;

@Repository("codeValueDao")
public class CodeValueDao extends BaseDao<CodeValue> {
	
	static String TABLE_NAME = "codevalue";
	public void del(int id){
		super.del(TABLE_NAME, id);
	}
	
	
	public List<CodeValue> loadByType(int type){
		String hql = "from CodeValue where type = "+type;
		return ht.find(hql);		
	}
	
	

}
